<script>
import store from '@/store'
export default {
  onShow: function () {},
  onHide: function () {
    console.log('App Hide')
  },
  onShareAppMessage(res) {
    return {
      title: '更多正品好货尽在咪咕商城',
      imageUrl:
        'https://img.alicdn.com/imgextra/i1/1656456252/O1CN01XkL12Y1w3SiPzkczq_!!1656456252.jpg',
      path: 'pages/index/index',
      chatList: [],
      chatObject: {},
    }
  },
  onLaunch(options) {
    // if (!store.state.token && !uni.getStorageSync('token')) {
    //   this.$routeUtils.reLaunch({
    //     url: '/pages/user/login',
    //   })
    // }
    // 有token，连接socket
    // store.state.token && uni.getStorageSync('token') && this.openSocket()
  },
  methods: {},
}
</script>

<style lang="scss">
@import 'uview-ui/index.scss';
@import './style/uni.scss';
@import './style/index.scss';
@import './style/base.scss';
@import './style/goods.scss';
@import './style/reset.scss';

/*每个页面公共css */
* {
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
page {
  background: #f6f6f6;
}
body::after {
  position: fixed;
  content: '';
  left: -1000px;
  top: -1000px;
  animation: none;
}

::selection {
  background: #00b4fd;
  color: #fff;
}

.red {
  color: #ff004f;
}

.b-w {
  background-color: #fff;
}

.b-shadow {
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
}

.b-r10 {
  border-radius: 10rpx;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

// 向右箭头
.arrow {
  width: 24rpx;
  height: 24rpx;
  position: absolute;
  top: 50%;
  margin-top: -12rpx;
  background: url('https://ss.migudm.cn/malleoc/public/ic_common_list_more@2x.png') center no-repeat;
  right: 14rpx;
  background-size: contain;
}

// 多行省略
.elps {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-elps {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

.pswp__top-bar {
  top: auto !important;
  bottom: 0 !important;
  opacity: 1 !important;
}

.pswp__button--fs,
.pswp__button--zoom,
.pswp__button--arrow--right,
.pswp__button--arrow--left {
  display: none !important;
}

.pswp__img {
  background: #eaeaea;
}

.rich-text {
  overflow: hidden;
}

.rich-tex > * {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-spacing: 0 !important;
}

table td {
  padding: 0;
}

.rich-text p,
.rich-text ul,
.rich-text li,
.rich-text,
.rich-text ol,
.rich-text img {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.rich-text img {
  display: block;
  vertical-align: top;
}

/*.uni-video-cover,*/
/*.uni-video-bar {*/
/*	display: none !important;*/
/*}*/

// .jd_goods_param{ display: none}
.uni-input-form {
  height: 100%;
}

.input-view .uni-input-wrapper {
  height: initial;
}

.rich-text .vip-table {
  display: block;
  width: 710rpx;
  margin: 0 auto;
}

.rich-text .vip-table tr {
  border: 1rpx solid #c7c7c7;
}

.rich-text .vip-table tr:first-child th {
  width: 710rpx;
  background: #eef7fe;
}

.rich-text .vip-table th {
  padding: 5px 0px;
  text-align: center;
}

.rich-text .vip-table td {
  padding: 2rpx 0px;
  background: #fff;
  border-left: 1px solid #c7c7c7;
  max-width: 380rpx;
  // width: 100%;
}

// .rich-text .vip-table td:first-child{
//     border-left: 0; }

.rich-text .vip-table .tdTitle {
  text-align: center;
  background: #f5fafe;
}

// .rich-text .vip-table th.tdTitle{
//     text-align: center; }

/*.uni-video-cover,*/
/*.uni-video-bar {*/
/*	display: none !important;*/
/*}*/

// .jd_goods_param{ display: none}
.uni-input-form {
  height: 100%;
}

.input-view .uni-input-wrapper {
  height: initial;
}

#product_detail_spec .jd_goods_param .Ptable {
  display: block;
  width: 710rpx;
  margin: 0 auto;
}

.jd_goods_param .Ptable tr {
  border: 1px solid #c7c7c7;
}

.jd_goods_param .Ptable tr:first-child th {
  width: 750px;
  background: #eef7fe;
}

.jd_goods_param .Ptable th {
  padding: 5px;
  text-align: center;
}

.jd_goods_param .Ptable td {
  padding: 2px 5px;
  background: #fff;
  border-left: 1px solid #c7c7c7;
  width: 100%;
}

.jd_goods_param .Ptable td:first-child {
  border-left: 0;
}

.jd_goods_param .Ptable .tdTitle {
  text-align: left;
  width: 110px;
  min-width: 140rpx;
  background: #f5fafe;
}

#product_detail_spec .jd_goods_param .Ptable .tdTitle {
  width: 2.9333333333rem;
  padding-right: 10px;
  min-width: 2rem;
}

.jd_goods_param .Ptable th.tdTitle {
  text-align: center;
}

.yx_detail_spec {
  background: #fff;
  padding: 0.2666666667rem;
}

.yx_detail_spec li {
  border-bottom: 0.0266666667rem dashed #ccc;
  overflow: hidden;
  line-height: 0.8rem;
  font-size: 0.32rem;
  padding: 0 0.1333333333rem;
  box-sizing: border-box;
}

.yx_detail_spec li.title {
  padding-top: 0.2666666667rem;
  padding-bottom: 0.0666666667rem;
  color: #333;
  font-size: 0.3733333333rem;
}

.yx_detail_spec li span.label {
  float: left;
  width: 25%;
  color: #999;
}

.yx_detail_spec li p.text {
  float: left;
  width: 74%;
  color: #333;
  line-height: 0.5333333333rem;
  padding: 0.1333333333rem 0;
}

#product_detail_spec .vip-table {
  width: 100% !important;
  display: block;
  margin: 0 auto;
}

#product_detail_spec .vip-table tr {
  border: 1px solid #c7c7c7;
}

#product_detail_spec .vip-table tr .tdTitle {
  text-align: right;
  background: #f5fafe;
  width: 2.6666666667rem;
  padding-right: 10px;
  min-width: 1.28rem;
  border-right: 1px solid #c7c7c7;
}

#product_detail_spec .vip-table td {
  padding: 2px 5px;
  background: #fff;
  border-left: 1px solid #c7c7c7;
  width: 100%;
}

#product_detail_spec .vip-table th.tdTitle {
  text-align: center;
}

#product_detail_spec .vip-table :first-child th {
  background: #eef7fe;
}

#product_detail_spec .vip-table th {
  padding: 5px;
  text-align: center;
}

.ssd-module,
.ssd-module-wrap {
  width: 710rpx !important;
  background-size: 100% auto !important;
}
</style>
